//电脑主页
Vue.component('main-share', {
	template: '#main-share',
	data: function(){
		return {
			moneys:[{date:'第一天',url:'share/每日分享/momey.png',size:'10万金币'},
					{date:'第二天',url:'share/每日分享/momey.png',size:'20万金币'},
					{date:'第三天',url:'share/每日分享/momey.png',size:'30万金币'},
					{date:'第四天',url:'share/每日分享/momey.png',size:'40万金币'},
					{date:'第五天',url:'share/每日分享/momey.png',size:'50万金币'},
					{date:'第六天',url:'share/每日分享/momey.png',size:'60万金币'},
					{date:'第七天',url:'share/每日分享/momey.png',size:'70万金币'}			
			]
		}
			
		
	},
	mounted:function(){
		
	},
	methods:{
		
	}
})




new Vue({
				el:'#body',
				data:{
					imgs:[{url:'share/每日分享.png',isShow:'show'},{url:'share/B.png',isShow:''},{url:'share/C.png',isShow:''}]
				},
				mounted:function(){
					
				},
				methods:{
					select:function(imgs,index){
						console.log(imgs)
						for(var i=0;i<imgs.length;i++){							
							imgs[i].isShow = ''
						}
						var select = imgs[index]
						select.isShow = 'show'
						
						this.imgs = [{url:'share/每日分享.png',isShow:''},{url:'share/B.png',isShow:''},{url:'share/C.png',isShow:''}]
						console.log(select)
						this.imgs.splice(index,1,select)
//						console.log(item.isShow)
					}
				}
			})